package com.marktotop.entity.business;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_vaccinator")
@ApiModel(value="Vaccinator对象", description="")
public class Vaccinator implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "接种人id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "真实姓名")
    @NotBlank(message = "真实姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "性别 0男 1女 2保密")
    private Integer sex;


    @ApiModelProperty(value = "接种人手机号")
    @NotBlank(message = "电话号码不能为空")
    private String phoneNumber;


    @ApiModelProperty(value = "所属区域")
    @NotBlank(message = "所属区域不能为空")
    private String area;


    @ApiModelProperty(value = "住址")
    @NotBlank(message = "地址信息不能为空")
    private String address;


    @ApiModelProperty(value = "是否有过敏史")
    private Boolean allergy;


    @ApiModelProperty(value = "是否身体健康")
    private Boolean health;

    @ApiModelProperty(value = "备注信息")
    private String remark;
}
